home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST2-3.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  438b  |  27 lines

  1. ;
  2. ; *** Listing 2-3 ***
  3. ;
  4. ; Measures the performance of 1000 loads of AL from
  5. ; memory. (Use by renaming to TESTCODE, which is
  6. ; included by PZTEST.ASM (Listing 2-2). PZTIME.BAT
  7. ; (Listing 2-4) does this, along with all assembly
  8. ; and linking.)
  9. ;
  10.     jmp    Skip    ;jump around defined data
  11. ;
  12. MemVar    db    ?
  13. ;
  14. Skip:
  15. ;
  16. ; Start timing.
  17. ;
  18.     call    ZTimerOn
  19. ;
  20.     rept    1000
  21.     mov    al,[MemVar]
  22.     endm
  23. ;
  24. ; Stop timing.
  25. ;
  26.     call    ZTimerOff
  27.